↳ Prolog
↳ PrologToPiTRSProof
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X, X1))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X, X1)) → search_tree_out_g(T)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X, X1))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X, X1)) → search_tree_out_g(T)
SEARCH_TREE_IN_G(T) → U1_G(T, search_tree_in_gaa(T, X, X1))
SEARCH_TREE_IN_G(T) → SEARCH_TREE_IN_GAA(T, X, X1)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → U2_GAA(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → U4_GAA(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → LESS_IN_GG(Max1, X)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_GAA(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → LESS_IN_GG(X, Min2)
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_GAA(X, Left, Min, less_in_gg(Max, X))
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → LESS_IN_GG(Max, X)
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_GAA(X, Right, Max, less_in_gg(X, Min))
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → LESS_IN_GG(X, Min)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X, X1))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X, X1)) → search_tree_out_g(T)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
SEARCH_TREE_IN_G(T) → U1_G(T, search_tree_in_gaa(T, X, X1))
SEARCH_TREE_IN_G(T) → SEARCH_TREE_IN_GAA(T, X, X1)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → U2_GAA(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → U4_GAA(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → LESS_IN_GG(Max1, X)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_GAA(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → LESS_IN_GG(X, Min2)
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_GAA(X, Left, Min, less_in_gg(Max, X))
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → LESS_IN_GG(Max, X)
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_GAA(X, Right, Max, less_in_gg(X, Min))
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → LESS_IN_GG(X, Min)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X, X1))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X, X1)) → search_tree_out_g(T)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X, X1))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X, X1)) → search_tree_out_g(T)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X, X1))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X, X1)) → search_tree_out_g(T)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
less_in_gg(0, s(X)) → less_out_gg(0, s(X))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
↳ Prolog
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
U7_GAA(X, Right, Min1, less_out_gg) → SEARCH_TREE_IN_GAA(Right)
U6_GAA(X, Right, search_tree_out_gaa(Min1, Max1)) → U7_GAA(X, Right, Min1, less_in_gg(Max1, X))
SEARCH_TREE_IN_GAA(tree(X, Left, Right)) → SEARCH_TREE_IN_GAA(Left)
SEARCH_TREE_IN_GAA(tree(X, Left, Right)) → U6_GAA(X, Right, search_tree_in_gaa(Left))
SEARCH_TREE_IN_GAA(tree(X, Left, void)) → SEARCH_TREE_IN_GAA(Left)
SEARCH_TREE_IN_GAA(tree(X, void, Right)) → SEARCH_TREE_IN_GAA(Right)
less_in_gg(0, s(X)) → less_out_gg
less_in_gg(s(X), s(Y)) → U10_gg(less_in_gg(X, Y))
search_tree_in_gaa(tree(X, void, void)) → search_tree_out_gaa(X, X)
search_tree_in_gaa(tree(X, void, Right)) → U2_gaa(X, search_tree_in_gaa(Right))
search_tree_in_gaa(tree(X, Left, void)) → U4_gaa(X, search_tree_in_gaa(Left))
search_tree_in_gaa(tree(X, Left, Right)) → U6_gaa(X, Right, search_tree_in_gaa(Left))
U10_gg(less_out_gg) → less_out_gg
U2_gaa(X, search_tree_out_gaa(Min, Max)) → U3_gaa(X, Max, less_in_gg(X, Min))
U4_gaa(X, search_tree_out_gaa(Min, Max)) → U5_gaa(X, Min, less_in_gg(Max, X))
U6_gaa(X, Right, search_tree_out_gaa(Min1, Max1)) → U7_gaa(X, Right, Min1, less_in_gg(Max1, X))
U3_gaa(X, Max, less_out_gg) → search_tree_out_gaa(X, Max)
U5_gaa(X, Min, less_out_gg) → search_tree_out_gaa(Min, X)
U7_gaa(X, Right, Min1, less_out_gg) → U8_gaa(X, Min1, search_tree_in_gaa(Right))
U8_gaa(X, Min1, search_tree_out_gaa(Min2, Max2)) → U9_gaa(Min1, Max2, less_in_gg(X, Min2))
U9_gaa(Min1, Max2, less_out_gg) → search_tree_out_gaa(Min1, Max2)
less_in_gg(x0, x1)
search_tree_in_gaa(x0)
U10_gg(x0)
U2_gaa(x0, x1)
U4_gaa(x0, x1)
U6_gaa(x0, x1, x2)
U3_gaa(x0, x1, x2)
U5_gaa(x0, x1, x2)
U7_gaa(x0, x1, x2, x3)
U8_gaa(x0, x1, x2)
U9_gaa(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs: